﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp4
{
    class vehicle
    {

        public void veh()
        {
            Console.WriteLine("我是交通工具");
        }
    }
    class creature
    {
        public void cre() { Console.WriteLine("我是动物"); }
    }

    class airplane : vehicle, Ifly
    {
        public void fly()
        {
            Console.WriteLine("我是飞机，我会飞");
        }
    }

    class birdie : creature, Ifly
    {
        public void fly()
        {
            Console.WriteLine("我是小鸟，我会飞");
        }
    }

    class Superman : creature, Ifly
    {
        public void fly()
        {
            Console.WriteLine("我是超人，我会飞");
        }
    }

    interface Ifly
    {
        void fly();

    }
}
